import http from 'k6/http';
import {check, sleep} from 'k6';
export let options={
	stages:[
		{duration:'30s', target:20},
		{duration:'20s', target:30},
		{duration:'10s', target:0},
	],
};
export default function(){
	let res = http.get('http://www.baidu.com');
	check(res, {"status was 200":(r)=>r.status==200});
	sleep(1);
}